package com.yan.controller.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.epay.ts.sss.wpc.api.WeakPasswordCheckService;
@Configuration
public class UserBean {


    @Value("${wpc.passwordCheck.hostUrl}")
    private String hostUrl;
    @Value("${wpc.passwordCheck.sysId}")
    private String sysId;
    @Value("${wpc.passwordCheck.subSysId}")
    private String subSysId;

    @Bean(initMethod = "init")
    public WeakPasswordCheckService initWeakPasswordCheckService(){
        WeakPasswordCheckService weakPasswordCheckService = new WeakPasswordCheckService();
        weakPasswordCheckService.setHostUrl(hostUrl);
        weakPasswordCheckService.setSysId(sysId);
        weakPasswordCheckService.setSubSysId(subSysId);
        return weakPasswordCheckService;
    }
}


